package com.example.envctel;

public class environmentControl {

    public  native int initUsbSerialDeviceServer(int prototype,int channel,int bautrate);
    public native int initUsbSerialHotplugServer();

    public native int getUsbSerialStatus(int channel);

    public  native int getModbusDeviceInfo(int devid,int datatype,int startaddr,int num,int[] pvalue);
    public  native int setModbusDeviceInfo(int devid,int datatype,int startaddr,int num,int[] pvalue);
    public native int curtainMotorDeviceControlInfo(int prototype,int devid,int funcode,int startaddr,int num,int[] pvalue);

    public  native int initTCPServer();
    public  native int getTCPClientData(byte[] pvalue);
}
